<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性绑定</title>
</head>
<body>
<div>
    {{info}}

    <!--:属性名="变量"，让元素某属性的值和变量进行单向绑定-->
    <input type="text" :value="info">

    <!--属性绑定 复杂版-->
    <input type="text" v-bind:value="info">

    <a :href="url">超链接</a>

    <img :src="imgUrl" alt="">
</div>

<script src="js/vue.min.js"></script>

<script>
    let v = new Vue({
        el: "body>div",
        data: {
            info: "属性绑定",
            url: "http://www.baidu.com",
            imgUrl: "man.jpg"
        }
    })
</script>

</body>
</html>